﻿using System;

namespace WorkOrder.Model
{
    public class Model_Table_Maintenance
    {
        private string _area_id, _town_id, _inte_unit_id, _maintain_unit,  _maintenance_ID, 
            _maintenance_number, _maintenance_status, _product_id, _remark, _station_name, _operator;
        private bool _inte_unit_is_check, _is_first_pass, _maintain_unit_is_email;
        private DateTime _maintenance_final_time, _maintenance_time;
        private string _area_name, _town_name, _product_name, _inte_unit_name;

        /// <summary>
        /// 区域ID
        /// </summary>
        public string Area_id { set { _area_id = value; } get { return _area_id; } }

        /// <summary>
        /// 镇区ID
        /// </summary>
        public string Town_id { set { _town_id = value; } get { return _town_id; } }

        /// <summary>
        /// 集成单位ID
        /// </summary>
        public string Inte_unit_id { set { _inte_unit_id = value; } get { return _inte_unit_id; } }

        /// <summary>
        /// 代维单位
        /// </summary>
        public string Maintain_unit { set { _maintain_unit = value; } get { return _maintain_unit; } }

        /// <summary>
        /// 最终交维时间
        /// </summary>
        public DateTime Maintenance_final_time { set { _maintenance_final_time = value; } get { return _maintenance_final_time; } }

        /// <summary>
        /// ID
        /// </summary>
        public string Maintenance_ID { set { _maintenance_ID = value; } get { return _maintenance_ID; } }

        /// <summary>
        /// 工单号
        /// </summary>
        public string Maintenance_number { set { _maintenance_number = value; } get { return _maintenance_number; } }

        /// <summary>
        /// 交维进度状态
        /// </summary>
        public string Maintenance_status { set { _maintenance_status = value; } get { return _maintenance_status; } }

        /// <summary>
        /// 申请交维时间
        /// </summary>
        public DateTime Maintenance_time { set { _maintenance_time = value; } get { return _maintenance_time; } }

        /// <summary>
        /// 产品类型ID
        /// </summary>
        public string Product_id { set { _product_id = value; } get { return _product_id; } }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { set { _remark = value; } get { return _remark; } }

        /// <summary>
        /// 站点名称
        /// </summary>
        public string Station_name { set { _station_name = value; } get { return _station_name; } }

        /// <summary>
        /// 集成单位是否参与交维检查
        /// </summary>
        public bool Inte_unit_is_check { set { _inte_unit_is_check = value; } get { return _inte_unit_is_check; } }

        /// <summary>
        /// 第一次交维是否通过
        /// </summary>
        public bool Is_first_pass { set { _is_first_pass = value; } get { return _is_first_pass; } }

        /// <summary>
        /// 代维单位是否发出交维计划邮件
        /// </summary>
        public bool Maintain_unit_is_email { set { _maintain_unit_is_email = value; } get { return _maintain_unit_is_email; } }

        /// <summary>
        /// 区域
        /// </summary>
        public string Area_name { set { _area_name = value; } get { return _area_name; } }

        /// <summary>
        /// 镇区
        /// </summary>
        public string Town_name { set { _town_name = value; } get { return _town_name; } }

        /// <summary>
        /// 产品类型
        /// </summary>
        public string Product_name { set { _product_name = value; } get { return _product_name; } }

        /// <summary>
        /// 集成单位
        /// </summary>
        public string Inte_unit_name { set { _inte_unit_name = value; } get { return _inte_unit_name; } }

        public string Operator { set { _operator = value; } get { return _operator; } }

        public Model_Table_Maintenance() { }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="maintenance_id">ID</param>
        /// <param name="maintenance_number">工单号</param>
        /// <param name="station_name">站点名称</param>
        /// <param name="area_id">区域ID</param>
        /// <param name="town_id">镇区ID</param>
        /// <param name="product_id">产品类型ID</param>
        /// <param name="maintenance_time">申请交维时间</param>
        /// <param name="maintenance_final_time">最终交维时间</param>
        /// <param name="is_first_pass">第一次交维是否成功</param>
        /// <param name="maintenance_status">交维进度状态</param>
        /// <param name="inte_unit_id">集成单位ID</param>
        /// <param name="maintain_unit">代维单位</param>
        /// <param name="maintain_unit_is_email">代维单位是否发送交维计划邮件</param>
        /// <param name="inte_unit_is_check">集成单位是否参与交维检查</param>
        /// <param name="remark">备注</param>
        public Model_Table_Maintenance(string maintenance_id, string maintenance_number, string station_name, string area_id, string town_id, string product_id,
            DateTime maintenance_time, DateTime maintenance_final_time, bool is_first_pass, string maintenance_status, string inte_unit_id, string maintain_unit,
            bool maintain_unit_is_email, bool inte_unit_is_check, string remark, string operatorT)
        {
            _maintenance_ID = maintenance_id;
            _maintenance_number = maintenance_number;
            _station_name = station_name;
            _area_id = area_id;
            _town_id = town_id;
            _product_id = product_id;
            _maintenance_time = maintenance_time;
            _maintenance_final_time = maintenance_final_time;
            _is_first_pass = is_first_pass;
            _maintenance_status = maintenance_status;
            _inte_unit_id = inte_unit_id;
            _maintain_unit = maintain_unit;
            _maintain_unit_is_email = maintain_unit_is_email;
            _inte_unit_is_check = inte_unit_is_check;
            _remark = remark;
            _operator = operatorT;
        }
    }
}
